from nicegui import app as NiceGUIApp
from src.utils.loggers import app_init_logger


class APP:
    def __init__(self):
        pass

    def set_NiceGUIApp(self):
        """设置NiceGUI"""
        self.NiceGUIApp = NiceGUIApp

    def set_MainWindow(self, main_window):
        """设置NiceGUI"""
        self.MAIN_WINDOW = main_window
        self.MAIN_WINDOW.set_APP(self)
